<!DOCTYPE html>
<html>
<head>
<title>zip固件信息表</title>
#parse("sys/header.html")
	<script src="${rc.contextPath}/statics/libs/ajaxupload.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("firmwarezip:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("firmwarezip:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("firmwarezip:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div class="form-group hidden">
				<div class="col-sm-2 control-label">唯一标识</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="fileId" v-model="firmwareZip.rowId" placeholder="唯一标识"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">硬件类型</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="firmwareZip.hardwareType" placeholder="硬件类型"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">硬件型号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="firmwareZip.hardwareModel" placeholder="硬件型号"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">固件最新版本号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  v-model="firmwareZip.firmwareLatestVersionCode"
						   placeholder="固件最新版本号"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">产品型号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="firmwareZip.equipmentModel" placeholder="产品型号"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">固件下载地址</div>
				<div class="col-sm-10">
					<input type="text" id="downloadPath" readonly class="form-control"
						   v-model="firmwareZip.firmwareDownloadAddr"
						   placeholder="固件下载地址"/>
				</div>

			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<div class="col-sm-10">
					<a class="btn btn-primary" id="upload"><i class="fa fa-plus"></i>&nbsp;上传文件</a>
				</div>

			</div>
			<div class="form-group hidden">
				<div class="col-sm-2 control-label">信息录入时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="firmwareZip.addTime" placeholder="信息录入时间"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">中文描述</div>
				<div class="col-sm-10">
					<input type="text" class="form-control hidden" v-model="firmwareZip.firmwareDescription"
						   placeholder="固件描述信息"/>
					<textarea class="form-control" id="zhDescription" rows="3" placeholder="中文描述">
                    </textarea>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">英文描述</div>
				<div class="col-sm-10">
                    <textarea class="form-control" id="enDescription" rows="3" placeholder="英文描述">
                    </textarea>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">日文描述</div>
				<div class="col-sm-10">
                    <textarea class="form-control" id="jaDescription" rows="3" placeholder="日文描述">
                    </textarea>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">合并版本号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="firmwareZip.mergeVersion"
						   placeholder="合并版本号：DL01_1,MCU_1,WIFI_2"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">合并更新方式</div>
				<div class="col-sm-10">
					<input type="text" class="form-control hidden" v-model="firmwareZip.updateMethod"
						   placeholder="更新方式0不强制、1强制"/>
					<select class="form-control" id="isUpdateMethod" placeholder="是否强制升级">
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">是否强制升级</div>
				<div class="col-sm-10">
					<input type="text" class="form-control hidden" v-model="firmwareZip.isMandatoryUpgrade"
						   placeholder="是否强制升级"/>
					<select class="form-control" id="isMandatoryUpgradeSelect" placeholder="是否强制升级">
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">状态</div>
				<div class="col-sm-10">
					<select class="form-control" id="isUseTo" placeholder="是否启用固件">
						<option value="0">是</option>
						<option value="1">否</option>
					</select>
				</div>
			</div>
			<div class="form-group  hidden">
				<div class="col-sm-2 control-label">固件大小</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="firmwareZip.firmwareSize" placeholder="固件大小"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/generator/firmwarezip.js?_${date.systemTime}"></script>
</body>
</html>